﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.TravelLogs
{
    public static class TravelLogBLL
    {
        public static int GetTravelLogCount(IList<Condition> conditionArray)
        {
            return TravelLogDAL.GetTravelLogCount(conditionArray);
        }

        public static List<TravelLogEntity> GetTravelLogList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return TravelLogDAL.GetTravelLogList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<TravelLogEntity> GetTravelLogList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return TravelLogDAL.GetTravelLogList(conditionArray, sortField, sortMode);
        }

        public static int GetShopTravelLogCount(IList<Condition> conditionArray)
        {
            return TravelLogDAL.GetShopTravelLogCount(conditionArray);
        }

        public static List<TravelLogEntity> GetShopTravelLogList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return TravelLogDAL.GetShopTravelLogList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<TravelLogEntity> GetShopTravelLogList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return TravelLogDAL.GetShopTravelLogList(conditionArray, sortField, sortMode);
        }

        public static TravelLogEntity GetTravelLog(int travellogID)
        {
            return TravelLogDAL.GetTravelLog(travellogID);
        }

        public static int InsertTravelLog(TravelLogEntity travellog)
        {
            return TravelLogDAL.InsertTravelLog(travellog);
        }

        public static int UpdateTravelLog(TravelLogEntity travellog)
        {
            return TravelLogDAL.UpdateTravelLog(travellog);
        }

        public static int DeleteTravelLog(int travellogID)
        {
            return TravelLogDAL.DeleteTravelLog(travellogID);
        }

        public static int SetTravelLogEnable(int travellogID)
        {
            return TravelLogDAL.SetTravelLogEnable(travellogID);
        }

        public static int HitTravelLog(int travellogID)
        {
            return TravelLogDAL.HitTravelLog(travellogID);
        }
    }
}
